package com.gexiaobao.pigeon.ui.fragment.mine.organization.video

import android.os.Bundle
import com.gexiaobao.pigeon.app.base.BaseActivity
import com.gexiaobao.pigeon.app.util.StatusBarUtil
import com.gexiaobao.pigeon.databinding.ActivityCarLiveAndPlaybackBinding
import com.gexiaobao.pigeon.viewmodel.VideoViewModel
import me.hgj.jetpackmvvm.ext.util.setOnclickNoRepeat

/**
 * @Author      : hxw
 * @Date        : 2024/9/6 13:53
 * @Describe    : 车辆直播回放
 */
class ActivityCarLiveAndPlayBack : BaseActivity<VideoViewModel, ActivityCarLiveAndPlaybackBinding>() {
    override fun initView(savedInstanceState: Bundle?) {
        StatusBarUtil.setTranslucentForImageView(this, 0, null)
        val title = intent.getStringExtra("title")
        mDatabind.includeBar.tvTitle.text = title
    }

    override fun onBindViewClick() {
        super.onBindViewClick()
        setOnclickNoRepeat(mDatabind.includeBar.ivBack) {
            when (it) {
                mDatabind.includeBar.ivBack -> finish()
            }
        }
    }
}